package com.ibuonline.b2b.entity;

import java.io.Serializable;

public class StatShopDaily implements Serializable {

	private static final long serialVersionUID = 7428227819784300720L;

	//fields
	private java.lang.Integer id;
	private java.sql.Timestamp statDate;
	private java.lang.Integer supplyApprove;
	private java.lang.Integer supplyReject;
	private java.lang.Integer supplyOverdue;
	private java.lang.Integer buyApprove;
	private java.lang.Integer buyReject;
	private java.lang.Integer buyOverdue;
	private java.lang.Integer companyApprove;
	private java.lang.Integer companyReject;
	private java.lang.Integer inquiry;
	private java.lang.Integer certApprove;
	private java.lang.Integer certReject;
	private java.lang.Integer certOverdue;
	private java.lang.Integer recruitApprove;
	private java.lang.Integer recruitOverdue;

	//default constructor
	public StatShopDaily() {
	}

	//getter
	public java.lang.Integer getId() {
		return id;
	}
	public java.sql.Timestamp getStatDate() {
		return statDate;
	}
	public java.lang.Integer getSupplyApprove() {
		return supplyApprove;
	}
	public java.lang.Integer getSupplyReject() {
		return supplyReject;
	}
	public java.lang.Integer getSupplyOverdue() {
		return supplyOverdue;
	}
	public java.lang.Integer getBuyApprove() {
		return buyApprove;
	}
	public java.lang.Integer getBuyReject() {
		return buyReject;
	}
	public java.lang.Integer getBuyOverdue() {
		return buyOverdue;
	}
	public java.lang.Integer getCompanyApprove() {
		return companyApprove;
	}
	public java.lang.Integer getCompanyReject() {
		return companyReject;
	}
	public java.lang.Integer getInquiry() {
		return inquiry;
	}
	public java.lang.Integer getCertApprove() {
		return certApprove;
	}
	public java.lang.Integer getCertReject() {
		return certReject;
	}
	public java.lang.Integer getCertOverdue() {
		return certOverdue;
	}
	public java.lang.Integer getRecruitApprove() {
		return recruitApprove;
	}
	public java.lang.Integer getRecruitOverdue() {
		return recruitOverdue;
	}

	//setter
	public void setId(java.lang.Integer id) {
		this.id = id;
	}
	public void setStatDate(java.sql.Timestamp statDate) {
		this.statDate = statDate;
	}
	public void setSupplyApprove(java.lang.Integer supplyApprove) {
		this.supplyApprove = supplyApprove;
	}
	public void setSupplyReject(java.lang.Integer supplyReject) {
		this.supplyReject = supplyReject;
	}
	public void setSupplyOverdue(java.lang.Integer supplyOverdue) {
		this.supplyOverdue = supplyOverdue;
	}
	public void setBuyApprove(java.lang.Integer buyApprove) {
		this.buyApprove = buyApprove;
	}
	public void setBuyReject(java.lang.Integer buyReject) {
		this.buyReject = buyReject;
	}
	public void setBuyOverdue(java.lang.Integer buyOverdue) {
		this.buyOverdue = buyOverdue;
	}
	public void setCompanyApprove(java.lang.Integer companyApprove) {
		this.companyApprove = companyApprove;
	}
	public void setCompanyReject(java.lang.Integer companyReject) {
		this.companyReject = companyReject;
	}
	public void setInquiry(java.lang.Integer inquiry) {
		this.inquiry = inquiry;
	}
	public void setCertApprove(java.lang.Integer certApprove) {
		this.certApprove = certApprove;
	}
	public void setCertReject(java.lang.Integer certReject) {
		this.certReject = certReject;
	}
	public void setCertOverdue(java.lang.Integer certOverdue) {
		this.certOverdue = certOverdue;
	}
	public void setRecruitApprove(java.lang.Integer recruitApprove) {
		this.recruitApprove = recruitApprove;
	}
	public void setRecruitOverdue(java.lang.Integer recruitOverdue) {
		this.recruitOverdue = recruitOverdue;
	}

	//equals method
	public boolean equals(Object other) {
		if (this == other)
			return true;
		if (!(other instanceof StatShopDaily))
			return false;

		final StatShopDaily statShopDaily = (StatShopDaily)other;
		if (!this.id.equals(statShopDaily.getId()))
			return false;

		return true;
	}

	//hashCode method
	public int hashCode() {
		StringBuffer keys = new StringBuffer();
		keys.append(id).append(",");
		if (keys.length() > 0)
			keys.deleteCharAt(keys.length() - 1);
		return keys.toString().hashCode();
	}

	//toString method
	public String toString() {
		return new StringBuilder("StatShopDaily[")
			.append("id=").append(id).append(", ")
			.append("statDate=").append(statDate).append(", ")
			.append("supplyApprove=").append(supplyApprove).append(", ")
			.append("supplyReject=").append(supplyReject).append(", ")
			.append("supplyOverdue=").append(supplyOverdue).append(", ")
			.append("buyApprove=").append(buyApprove).append(", ")
			.append("buyReject=").append(buyReject).append(", ")
			.append("buyOverdue=").append(buyOverdue).append(", ")
			.append("companyApprove=").append(companyApprove).append(", ")
			.append("companyReject=").append(companyReject).append(", ")
			.append("inquiry=").append(inquiry).append(", ")
			.append("certApprove=").append(certApprove).append(", ")
			.append("certReject=").append(certReject).append(", ")
			.append("certOverdue=").append(certOverdue).append(", ")
			.append("recruitApprove=").append(recruitApprove).append(", ")
			.append("recruitOverdue=").append(recruitOverdue).append("]").toString();
	}
}